
#ifndef CONFIG_H_
#define CONFIG_H_
#include <iostream>
#include <cstdlib>
#include <string.h>
#include <string>
#include <fstream>
#include <map>


#define       UP        8
#define       DOWN      2
#define       RIGHT     6
#define       LEFT      4
#define       ENTER     5
#define       REPARAR     9
#define       SCROLLUP        1
#define       SCROLLDOWN      3
#define       ACCION1      7
#define       ACCION2      10

using namespace std;

class Config
{
  public:

  Config(std::string file);
  ~Config(void);

  std::string 	obtenerHost(void);
  int 		obtenerPuerto(void);
  map<int, int> obtenerControles(void);

  private:
	std::string 	m_strConfigFile;
	std::string 	m_strHost;
	int 		m_iPort;
        map<int,int> 	m_mControles;

  void obtenerDatos(ifstream& entrada);

};


#endif
